package com.yeshine.opendata.service;

import com.yeshine.opendata.core.IService;
import com.yeshine.opendata.entity.Data;
import com.yeshine.opendata.utils.PageResult;
import com.yeshine.opendata.utils.Result;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Created by taohj on 2014/7/14.
 */
public interface IDataService extends IService<Data> {

    public Result<Data> create(Data data, HttpServletRequest request);

    public Result<Data> modify(Data data, HttpServletRequest request);


    public Result<Data> search(PageResult<Data> pageResult);


    List<String> getGroupByFormat(Data data);


    List<String>  getGroupByTags(Data data);



    List<String>  getGroupByLicense(Data data);

    List<String>  getTopTags(Data data);


    Result<Data> audit(Integer auditStatus, Integer[] datas);
}
